const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  configureWebpack: {
    devServer: {
      open: false,
      port: 8585,
      host: '127.0.0.1',
      proxy: {
        "/api1": {
          target: 'http://gmall-h5-api.atguigu.cn/',
          pathRewrite: {
            '^/api1': ''
          }
        }
      }
    },
    resolve: {
      alias: {
        "@comp": "@/components",
        "@pages": "@/pages"
      }
    }
  }

})
